/**
 * 获取地址栏指定键的值
 * @param {string} key 想要获取的键
 * @returns string 对应键的值
 */
function getParams(key) {
    let query = window.location.search.substring(1);
    query = decodeURI(query)
    let vars = query.split("&")
    for (var i = 0; i < vars.length; i++) {
        var tempArr = vars[i].split('=');
        if (tempArr[0] === key) return tempArr[1]
    }
    return false;
}